﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace NWNT.Web.Models
{
    [DataContract]
    public class UserInfoModel
    {
        public int UserId { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string RelationshipCode { get; set; }
        public string CompanyName { get; set; }
        public int? PrefixId { get; set; }
        public string FirstName { get; set; }
        public string MiddleName { get; set; }
        public string LastName { get; set; }

        [DataMember]
        public DateTime? DateOfBirth { get; set; }
        public string Gender { get; set; }
        public int? UserTypeId { get; set; }
        public Nullable<int> ParentId { get; set; }
        public bool IsActive { get; set; }
        public int CreatedBy { get; set; }
        public System.DateTime CreatedOn { get; set; }
        public int EditedBy { get; set; }
        public System.DateTime EditedOn { get; set; }

        public List<UserProfileModel> UserProfiles { get; set; }

        public List<StressResultsDateModel> StressResults { get; set; }
    }

    public class UserProfileModel
    {
        public int UserProfileId { get; set; }
        public int UserId { get; set; }
        public int Counter { get; set; }
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public Nullable<int> Pincode { get; set; }
        public Nullable<int> CountryId { get; set; }
        public Nullable<int> StateId { get; set; }
        public int MobileNo { get; set; }
        public Nullable<int> PhoneNo { get; set; }
        public string Email { get; set; }
        public Nullable<int> Fax { get; set; }
        public string Website { get; set; }
        public int CreatedBy { get; set; }
        public System.DateTime CreatedOn { get; set; }
        public int EditedBy { get; set; }
        public System.DateTime EditedOn { get; set; }
        public string ApplicableStressOMeter { get; set; }
    }

    public class StressResultsDateModel
    {
        public int StressResultId { get; set; }

        public DateTime StressDate { get; set; }
    }
}